package org.groovycap.gcap

public enum  MsgType {
	ALERT('alert'),
	UPDATE('update'),
	CANCEL('cancel'),
	ACK('ack'),
	ERROR('error')
	
	private final String value

	private MsgType(String value){
	 this.value = value;
	}
	
	String value() {value}
	
	String toString() {
	 value
	}
	
	String getKey() {
	 name()
	}
	
	static list(){
	 [ALERT,UPDATE,CANCEL,ACK,ERROR]
	}
}